#include "Httpserve.hpp"
#include <iostream>
#include <memory>

using namespace std;

void Usage(const string& proc)
{
    cout << endl;
    cout << " Usage: " << proc << " port[1024+]" << endl;
    cout << endl;
}

int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
        exit(1);
    }

    uint16_t port = stoi(argv[1]);

    shared_ptr<Httpserve> svr(new Httpserve(port));
    svr->Start();
    return 0;
}